<?php

class IndexController extends App_Controller_Action
{
    public function indexAction()
    {
        $this->_redirect('tarefa');
    }

    public function administracaoAction()
    {
    }

    public function limparCacheAction()
    {
        $cacheManager  = Zend_Registry::get('Zend_Cache_Manager');
        $cacheManager->getCache('default')->clean();
        $this->_redirect('index');
    }

    public function historicoAction()
    {
        $idUsuario = Zend_Auth::getInstance()->getIdentity()->id_usuario;
        $modelHistorico = new Model_Historico();
        $rowSetHistorico = $modelHistorico->getResumo($idUsuario, null);
        $this->view->rowSetHistoricos = $rowSetHistorico;
    }

    public function estruturaAction()
    {
    }
}
